projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e1a91b
)
hvmloader: Replace unportable usage of GNU head with portable awk.
author
Keir Fraser
<keir.fraser@citrix.com>
Mon, 22 Feb 2010 18:42:50 +0000
(18:42 +0000)
committer
Keir Fraser
<keir.fraser@citrix.com>
Mon, 22 Feb 2010 18:42:50 +0000
(18:42 +0000)
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
tools/firmware/hvmloader/acpi/Makefile
patch
|
blob
|
history
diff --git
a/tools/firmware/hvmloader/acpi/Makefile
b/tools/firmware/hvmloader/acpi/Makefile
index 7d82c63cbd6046649bc085efda4f11b19542c3ff..3fdb7c27e158213abfcb96a7ef43f23532af39b5 100644
(file)
--- a/
tools/firmware/hvmloader/acpi/Makefile
+++ b/
tools/firmware/hvmloader/acpi/Makefile
@@
-31,9
+31,10
@@
ssdt_pm.h ssdt_tpm.h: %.h: %.asl iasl
sed -e 's/AmlCode/$*/g' $*.hex >$@
rm -f $*.hex $*.aml
+# NB. awk invocation is a portable alternative to 'head -n -1'
dsdt_15cpu.c dsdt_anycpu.c: %.c: dsdt.asl mk_dsdt.c iasl
$(HOSTCC) $(HOSTCFLAGS) $(CFLAGS_include) -o mk_$* mk_dsdt.c
-
head -n -1
$< >$*.asl
+
awk 'NR > 1 {print s} {s=$$0}'
$< >$*.asl
./mk_$* >>$*.asl
iasl -p $* -tc $*.asl
sed -e 's/AmlCode/$*/g' $*.hex >$@